package com.cyjt.operation.bean;

import java.io.Serializable;

/**
 * 动态交通车位动态节点的实体类
 * 
 * @author LTP
 *
 */
public class DynamicNodes implements Serializable {

	private static final long serialVersionUID = 1L;
	// 基站id
	private int basestationId;
	// 基站编码
	private String code;
	// 路口方向
	private String crossing;
	// 车道数
	private int driveway;
	// 数据表id
	private int id;
	// 节点编码
	private String nfcCode;
	// 路段名
	private String title;
	//功能码
	private String func;
	//描述
	private String description;

	public String getFunc() {
		return func;
	}

	public void setFunc(String func) {
		this.func = func;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	/** @return 基站id */
	public int getBasestationId() {
		return basestationId;
	}

	public void setBasestationId(int basestationId) {
		this.basestationId = basestationId;
	}

	/** @return 基站编码 */
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	/** @return 路口方向 */
	public String getCrossing() {
		return crossing;
	}

	public void setCrossing(String crossing) {
		this.crossing = crossing;
	}

	/** @return 车道数 */
	public String getDriveway() {
		if (driveway==0) {
			return "无绑定";
		}
		return driveway+"";
	}

	public void setDriveway(int driveway) {
		this.driveway = driveway;
	}

	/** @return 数据表id */
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	/** @return 节点编码 */
	public String getNfcCode() {
		if ("".equals(nfcCode)) {
			return "无绑定";
		}
		return nfcCode;
	}

	public void setNfcCode(String nfcCode) {
		this.nfcCode = nfcCode;
	}

	/** @return 路段名 */
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
